package co.gov.medellin.ssti.sub.model.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.ReporteTotalProgramasDAO;
import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.service.ReporteTotalProgramasService;
import co.gov.medellin.ssti.sub.model.vo.AreaVO;
import co.gov.medellin.ssti.sub.model.vo.ReporteTotalProgramasVO;

@Service
public class ReporteTotalProgramasServiceImpl implements
		ReporteTotalProgramasService {
	@Autowired
	ReporteTotalProgramasDAO reporteTotalProgramasDAOImpl2;

	public Collection<ReporteTotalProgramasVO> findReporteTotalProgramas(
			ReporteTotalProgramasVO criteria) {
		try {
			return reporteTotalProgramasDAOImpl2
					.findReporteTotalProgramas(criteria);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public Collection<AreaVO> findSecretarias() {
		try {
			return reporteTotalProgramasDAOImpl2.findSecretarias();
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public ReporteTotalProgramasVO findFilters(
			ReporteTotalProgramasVO reporteTotalProgramasVO) {
		try {
			return reporteTotalProgramasDAOImpl2
					.findFilters(reporteTotalProgramasVO);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
